/**
 * mkdirp 创建文件夹模块
 * 1、https://www.npmjs.com/package/mkdirp
 * 2、npm install mkdirp --save / cnpm install mkdirp --save
 * 3、var mkdirp = require("mkdirp");
 * 4、看文档使用
 */

 const { mkdir } = require('fs');
const mkdirp = require('mkdirp')


mkdirp('./upload').then(made =>
    console.log(`made directories, starting with ${made}`));

mkdirp('./uploadDir');

//一次创建多个目录
mkdirp('./upload1/img/aaa/xxx').then(made =>
    console.log(`made directories, starting with ${made}`));

